package com.lemon.core.common.web.notify.dingding;

/**
 * @author lemon
 * @ClassName DingDingMsgTemplate
 * @desc 钉钉消息模板
 * @Date 2019/1/31 15:12
 * @Version 1.0
 **/
public class DingDingMsgTemplate {

    public static final String TEXT_MSG = "{\n" +
            "  \"msgtype\": \"text\",\n" +
            "  \"text\": {\n" +
            "    \"content\": \"%s\"\n" +
            "  },\n" +
            "  \"at\": {\n" +
            "    \"atMobiles\": [\n" +
            "      \"%s\"\n" +
            "    ],\n" +
            "    \"isAtAll\": %b\n" +
            "  }\n" +
            "}";

    public static final String LINK_MSG = "{\n" +
            "  \"msgtype\": \"link\",\n" +
            "  \"link\": {\n" +
            "    \"text\": \"%s\",\n" +
            "    \"title\": \"%s\",\n" +
            "    \"picUrl\": \"%s\",\n" +
            "    \"messageUrl\": \"%s\"\n" +
            "  }\n" +
            "}";

    public static final String MARKDOWN_MSG = "{\n" +
            "  \"msgtype\": \"markdown\",\n" +
            "  \"markdown\": {\n" +
            "    \"title\": \"%s\",\n" +
            "    \"text\": \"%s\"\n" +
            "  },\n" +
            "  \"at\": {\n" +
            "    \"atMobiles\": [\n" +
            "      \"%s\"\n" +
            "    ],\n" +
            "    \"isAtAll\": %b\n" +
            "  }\n" +
            "}";

    public static final String ACTIONCARD_MSG = "{\n" +
            "  \"msgtype\": \"actionCard\",\n" +
            "  \"actionCard\": {\n" +
            "    \"title\": \"%s\",\n" +
            "    \"text\": \"%s\",\n" +
            "    \"hideAvatar\": \"%s\",\n" +
            "    \"btnOrientation\": \"%s\",\n" +
            "    \"singleTitle\": \"%s\",\n" +
            "    \"singleURL\": \"%s\"\n" +
            "  },\n" +
            "  \"at\": {\n" +
            "    \"atMobiles\": [\n" +
            "      \"%s\"\n" +
            "    ],\n" +
            "    \"isAtAll\": %b\n" +
            "  }\n" +
            "}";
}
